package com.atwy.account.model;

import java.io.Serializable;

public class AccountDo implements Serializable {
    private int id;
    private String userId;
    private double money;
    private double freezeMoney;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public double getFreezeMoney() {
        return freezeMoney;
    }

    public void setFreezeMoney(double freezeMoney) {
        this.freezeMoney = freezeMoney;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Accout{");
        sb.append("id=").append(id);
        sb.append(", userId='").append(userId).append('\'');
        sb.append(", money=").append(money);
        sb.append(", freeze_money=").append(freezeMoney);
        sb.append('}');
        return sb.toString();
    }
}
